package com.shopping_back.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("groupbuy_group")
public class GroupbuyGroup {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String inviteCode;
    private Long   itemSkuId;             // ← 对应 groupbuy_item.sku_id
    private Long   leaderUserId;

    private Integer joinedCount;
    private LocalDateTime expireTime;
    private Integer status;               // 0 进行中 1 已成团 2 失败 3 取消

    private LocalDateTime createTime;
    private LocalDateTime updateTime;

}

